<?php

defined('AUTH_SERVICE') or define('AUTH_SERVICE','live');

require_once '../server.php';

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('error_reporting', E_ALL);

// Include the YOS library.
require 'lib/Yahoo.inc.php';


if (!isset($_REQUEST['oauth_verifier']))
{
    YahooSession::clearSession();
}

$session = YahooSession::requireSession(YAHOO_KEY, YAHOO_SECRET, YAHOO_APP_ID);


$user = $session -> getSessionedUser();

$friend = $user -> getContacts(0, 5000);
